import { Dict, DictType } from '@/model/common';
import { Cache, CacheConstant } from '@/plugin';

export default {
    token: Cache.get(CacheConstant.TOKEN),
    user: Cache.get(CacheConstant.USER),
    menus: Cache.get(CacheConstant.MENUS),
    dict: new Map<DictType, Dict[]>(),
    chatId: Cache.get(CacheConstant.CHAT_ID),
};

export class StoreDict {
    public type!: DictType;
    public data: Dict[] = [];
}
